import scala.beans.BeanProperty

object Hello {

case class CaseClass(@BeanProperty var age:Int, @BeanProperty var name:String) {
def this() = this(0, null)
}

def main(args:Array[String]):Unit = {
val cc = new CaseClass()
// 其他逻辑

}
}